# $Id: Makefile.am,v 1.7 2005/08/21 22:20:25 joostvb Exp $

PERL                    = perl

pngs		= back.png backon.png bg1.png blank.png blankon.png \
 forward.png forwardon.png help.png helpon.png home.png homeon.png \
 inactive.png index.png indexon.png next.png nexton.png prev.png prevon.png \
 toc.png tocon.png up.png upon.png

htmls		= \
 autobook.html     autobook_1.html   autobook_10.html  autobook_100.html \
 autobook_101.html autobook_102.html autobook_103.html autobook_104.html \
 autobook_105.html autobook_106.html autobook_107.html autobook_108.html \
 autobook_109.html autobook_11.html  autobook_110.html autobook_111.html \
 autobook_112.html autobook_113.html autobook_114.html autobook_115.html \
 autobook_116.html autobook_117.html autobook_118.html autobook_119.html \
 autobook_12.html  autobook_120.html autobook_121.html autobook_122.html \
 autobook_123.html autobook_124.html autobook_125.html autobook_126.html \
 autobook_127.html autobook_128.html autobook_129.html autobook_13.html \
 autobook_130.html autobook_131.html autobook_132.html autobook_133.html \
 autobook_134.html autobook_135.html autobook_136.html autobook_137.html \
 autobook_138.html autobook_139.html autobook_14.html  autobook_140.html \
 autobook_141.html autobook_142.html autobook_143.html autobook_144.html \
 autobook_145.html autobook_146.html autobook_147.html autobook_148.html \
 autobook_149.html autobook_15.html  autobook_150.html autobook_151.html \
 autobook_152.html autobook_153.html autobook_154.html autobook_155.html \
 autobook_156.html autobook_157.html autobook_158.html autobook_159.html \
 autobook_16.html  autobook_160.html autobook_161.html autobook_162.html \
 autobook_163.html autobook_164.html autobook_165.html autobook_166.html \
 autobook_167.html autobook_168.html autobook_169.html autobook_17.html \
 autobook_170.html autobook_171.html autobook_172.html autobook_173.html \
 autobook_174.html autobook_175.html autobook_176.html autobook_177.html \
 autobook_178.html autobook_179.html autobook_18.html  autobook_180.html \
 autobook_181.html autobook_182.html autobook_183.html autobook_184.html \
 autobook_185.html autobook_186.html autobook_187.html autobook_188.html \
 autobook_189.html autobook_19.html  autobook_190.html autobook_191.html \
 autobook_192.html autobook_193.html autobook_194.html autobook_195.html \
 autobook_196.html autobook_197.html autobook_198.html autobook_199.html \
 autobook_2.html   autobook_20.html  autobook_200.html autobook_201.html \
 autobook_202.html autobook_203.html autobook_204.html autobook_205.html \
 autobook_206.html autobook_207.html autobook_208.html autobook_209.html \
 autobook_21.html  autobook_210.html autobook_211.html autobook_212.html \
 autobook_213.html autobook_214.html autobook_215.html autobook_216.html \
 autobook_217.html autobook_218.html autobook_219.html autobook_22.html \
 autobook_220.html autobook_221.html autobook_222.html autobook_223.html \
 autobook_224.html autobook_225.html autobook_226.html autobook_227.html \
 autobook_228.html autobook_229.html autobook_23.html  autobook_230.html \
 autobook_231.html autobook_232.html autobook_233.html autobook_234.html \
 autobook_235.html autobook_236.html autobook_237.html autobook_238.html \
 autobook_239.html autobook_24.html  autobook_240.html autobook_241.html \
 autobook_242.html autobook_243.html autobook_244.html autobook_245.html \
 autobook_246.html autobook_247.html autobook_248.html autobook_249.html \
 autobook_25.html  autobook_250.html autobook_251.html autobook_252.html \
 autobook_253.html autobook_254.html autobook_255.html autobook_256.html \
 autobook_257.html autobook_258.html autobook_259.html autobook_26.html \
 autobook_260.html autobook_261.html autobook_262.html autobook_263.html \
 autobook_264.html autobook_265.html autobook_266.html autobook_267.html \
 autobook_268.html autobook_269.html autobook_27.html  autobook_270.html \
 autobook_271.html autobook_272.html autobook_273.html autobook_274.html \
 autobook_275.html autobook_276.html autobook_277.html autobook_278.html \
 autobook_279.html autobook_28.html  autobook_280.html autobook_281.html \
 autobook_282.html autobook_283.html autobook_284.html autobook_285.html \
 autobook_286.html autobook_29.html  autobook_3.html   autobook_30.html \
 autobook_31.html  autobook_32.html  autobook_33.html  autobook_34.html \
 autobook_35.html  autobook_36.html  autobook_37.html  autobook_38.html \
 autobook_39.html  autobook_4.html   autobook_40.html  autobook_41.html \
 autobook_42.html  autobook_43.html  autobook_44.html  autobook_45.html \
 autobook_46.html  autobook_47.html  autobook_48.html  autobook_49.html \
 autobook_5.html   autobook_50.html  autobook_51.html  autobook_52.html \
 autobook_53.html  autobook_54.html  autobook_55.html  autobook_56.html \
 autobook_57.html  autobook_58.html  autobook_59.html  autobook_6.html \
 autobook_60.html  autobook_61.html  autobook_62.html  autobook_63.html \
 autobook_64.html  autobook_65.html  autobook_66.html  autobook_67.html \
 autobook_68.html  autobook_69.html  autobook_7.html   autobook_70.html \
 autobook_71.html  autobook_72.html  autobook_73.html  autobook_74.html \
 autobook_75.html  autobook_76.html  autobook_77.html  autobook_78.html \
 autobook_79.html  autobook_8.html   autobook_80.html  autobook_81.html \
 autobook_82.html  autobook_83.html  autobook_84.html  autobook_85.html \
 autobook_86.html  autobook_87.html  autobook_88.html  autobook_89.html \
 autobook_9.html   autobook_90.html  autobook_91.html  autobook_92.html \
 autobook_93.html  autobook_94.html  autobook_95.html  autobook_96.html \
 autobook_97.html  autobook_98.html  autobook_99.html  \
 autobook_abt.html autobook_fot.html autobook_ovr.html autobook_toc.html

EXTRA_DIST		= $(pngs)

CLEANFILES		= $(htmls)

docdir                  = $(datadir)/doc/$(PACKAGE)/html

autobook.html: $(top_srcdir)/autobook.texi
	$(PERL) $(top_srcdir)/texi2html -I $(srcdir) -split section -nomenu $<

## 	$(PERL) $(top_srcdir)/texi2html -I $(srcdir) -split section --subdir html -nomenu $<

html_doc = autobook.html

# AutoMake extensions used to handle HTML documentation in chunks
all-local: $(html_doc)

doc_DATA = $(pngs) $(htmls)


## these 3 chunks install Makefile* in $(DESTDIR)$(docdir)/html/ .  That's
## ugly, use doc_DATA.  (We need the explicit list of html files for other
## reasons anyway.)

## install-data-local : $(html_doc)
## 	$(mkinstalldirs) $(DESTDIR)$(docdir)/html; \
##             cp $(top_builddir)/html/* $(DESTDIR)$(docdir)/html

## uninstall-local:
## 	for f in $(top_srcdir)/html/*; do \
##                 file=`basename $$f`; \
##                 rm -f $(DESTDIR)$(docdir)/html/$$file; \
##             done; \
##             rmdir $(DESTDIR)$(docdir)/html

## maintainer-clean-local :
## 	rm -f $(top_srcdir)/html/*.html

